package dodo.mindmap;

import java.awt.Color;

import geomerative.RStyle;

public class NodeStyle {
	
	private static RStyle baseNode(){
		RStyle s = new RStyle();
		s.setFill(Color.BLACK.getRGB());
		s.setFillAlpha(255);
		s.setStroke(false);
		
		return s;
	}
	private static RStyle baseNodeText(){
		RStyle s = new RStyle();
		s.setFill(Color.WHITE.getRGB());
		s.setFillAlpha(255);
		s.setStroke(Color.WHITE.getRGB());
		
		return s;
	}
	
	private static RStyle node(){
		RStyle s = new RStyle();
		s.setFill(Color.BLUE.getRGB());
		s.setFillAlpha(255);
		s.setStroke(false);
		
		return s;
	}
	private static RStyle nodeText(){
		RStyle s = new RStyle();
		s.setFill(Color.WHITE.getRGB());
		s.setFillAlpha(255);
		s.setStroke(Color.WHITE.getRGB());
		
		return s;
	}
	
	private static RStyle button(){
		RStyle s = new RStyle();
		s.setFill(Color.LIGHT_GRAY.getRGB());
		s.setFillAlpha(100);
		s.setStroke(false);
		
		return s;
	}
	
	private static RStyle buttonText(){
		RStyle s = new RStyle();
		s.setFill(Color.WHITE.getRGB());
		s.setFillAlpha(255);
		s.setStroke(Color.white.getRGB());
		
		return s;
	}
	
	private static RStyle background(){
		RStyle s = new RStyle();
		s.setFill(Color.WHITE.getRGB());
		
		return s;
	}
	
	private static RStyle backgroundFade(){
		RStyle s = background();
		s.setFill(Color.WHITE.darker().getRGB());
		
		return s;
	}
	
	// Node Styles
	public static RStyle basenode = baseNode();
	public static RStyle basenodeText = baseNodeText();
	
	public static RStyle node = node();
	public static RStyle nodeText = nodeText();
	
	// Node Button Styles
	public static RStyle button = button();
	public static RStyle buttonText = buttonText();
	
	// Mindmap Styles
	public static RStyle background = background();
	public static RStyle backgroundFade = backgroundFade();
	
}
